
package com.gp.activity.detail;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import com.gp.R;
import com.gp.activity.base.BaseActivity;

public class TravalGuideDetailActivity extends BaseActivity {

    // 用来接收CityGuideActivity传过来的数据
    private String mTitle;
    private String mDescriptions;

    // 显示信息的控件
    private TextView mtv_title;
    private ImageView mima_ima;
    private TextView mtv_des;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.travalguide_detail);
        getData();
        initiew();
        bindData();
    }

    /**
     * @Title: getData
     * @param
     * @return void
     * @throws
     * @date Jul 29, 2013 2:17:14 AM
     * @version 1.0
     * @Description: 接收CityGuideActivity传过来的数据
     */
    private void getData() {

        // 用Bundle存放传过来的数据
        Bundle qBundle = getIntent().getExtras();
        mTitle = qBundle.getString("title");
        mDescriptions = qBundle.getString("descriptions");

    }

    private void initiew() {

        mtv_title = (TextView) findViewById(R.id.tv_travalguide_de_title);
        mtv_des = (TextView) findViewById(R.id.tv_travalguide_de_des);
    }

    private void bindData() {
        
        mtv_title.setText(mTitle);
        mtv_des.setText(mDescriptions);
    }

}
